/// <reference path="../Scripts/jquery-1.7.1.min.js" />
/// <reference path="../Scripts/knockout-2.1.0.js" />

function LoginViewModel() 
	{
    var self = this;
	// put a property loop here
	self.UserName = ko.observable();
			self.Password = ko.observable();
			self.RememberMe = ko.observable();
			
    
    self.LoginList = ko.observableArray([]);
    self.setApplication = function (
			_UserName, _Password, _RememberMe
	
	) {

			UserName = _UserName;
			Password = _Password;
			RememberMe = _RememberMe;
			
        
    }; //  End of set procedure 

	self.Login = function () {

        //alert("We are in the AddLogin ko function");
      
        var myData = ko.toJSON(this);
        jQuery.ajax({
            url: "/account/login/",
            type: 'post',
            data: myData,
            contentType: 'application/json',
            success: function (result) {
                location.href = "/";
            }
        });



    }; //End of add procedure

			

}; //End of view model






